User-Defined Join Point Selectors -- An Extension Mechanism for Pointcut Languages

نویسندگان

  • Cristiano Breuel
  • Francisco Reverbel
چکیده

One of the main issues in contemporary AOP languages and frameworks is the expressiveness of the pointcut language. This paper proposes an extension mechanism for enriching pointcut languages with constructs that play the role of “new primitive pointcuts” and allow the creation of pointcuts with greater semantic value. Join point selectors are a generalization of the primitive pointcuts of current pointcut languages. Existing languages, however, do not allow users to create new join point selectors. We present a simple architecture for supporting user-defined join-point selectors as an extension mechanism implemented atop an existing AOP framework. We show examples of user-defined selectors that enhance the quality of pointcuts and make aspect development easier. Moreover, we show that our extension mechanism supports framework-specific selectors, which let aspects cross the boundary of a given framework while still respecting the modularity of that framework.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Jumping Aspects Revisited

In this paper, we propose an extension of the JAsCo aspectoriented programming language for declaratively specifying a protocol fragment pointcut. The proposed pointcut language is equivalent to a finite state machine. Advices are attached to every transition specified in the pointcut protocol. We claim that stateful aspects benefit from run-time weaving and therefore introduce the JAsCo run-ti...

متن کامل

A Program Analysis for Tool-supported Refactoring of Aspect-oriented Programs

Aspect-oriented programming (AOP) has been proposed for improving the modularity of implementations that cannot be encapsulated with traditional means, so called crosscutting concerns. It introduces new adaptation concepts that allow the structural extension of implementation modules and the adaptation of existing program behavior. The adaptation concepts are often achieved by new language mech...

متن کامل

On the Assessment of Pointcut Design in Evolving Aspect-Oriented Software

The pointcut expression (PCE) is a key mechanism in enabling Aspect-Oriented Programming (AOP) (Kiczales et al. 1997) to improve the localization of crosscutting concerns. PCEs quantify over well-defined points in the execution of the program called join points. A join point shadow, on the other hand, refers to base-code corresponding to a join point (Xu and Rountev 2008), i.e., a point in the ...

متن کامل

Join Point Encapsulation

At the heart of aspect-oriented programming is the exposure of certain phenomena in the execution of one set of program elements to behavioral modifications specified by other elements. The phenomena are join points. The modifying elements are aspects. The problem that we address is that current aspectoriented languages do not provide adequate means to control the exposure of join points for be...

متن کامل

A Semantic-based Runtime Weaver for Dynamic Management of the Join Point History

Although early research in aspect-oriented programming focussed on aspects that are triggered at a single join point, more recent research has evolved towards aspects that are triggered based on the occurrence of a series of join points in the execution of a program. These types of aspects were dubbed event-based aspects, stateful aspects [2] and contextaware aspects [10], and a number of novel...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Journal of Object Technology

دوره 7  شماره 

صفحات  -

تاریخ انتشار 2008